package my.syncfilter.entity;

public class SumFile
{
    private String fileName;

    private String fileSize;

    private String fileLine;

    private boolean isUpload;

    private boolean isEndFile;

    private String fieldSplit;

    private String  lineSplit;

    private String basePath;

    public String getFieldSplit() {
        return fieldSplit;
    }

    public void setFieldSplit(String fieldSplit) {
        this.fieldSplit = fieldSplit;
    }

    public String getLineSplit() {
        return lineSplit;
    }

    public void setLineSplit(String lineSplit) {
        this.lineSplit = lineSplit;
    }

    public String getBasePath() {
        return basePath;
    }

    public void setBasePath(String basePath) {
        this.basePath = basePath;
    }

    public boolean isEndFile() {
        return isEndFile;
    }

    public void setEndFile(boolean endFile) {
        isEndFile = endFile;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileLine() {
        return fileLine;
    }

    public void setFileLine(String fileLine) {
        this.fileLine = fileLine;
    }

    public boolean isUpload() {
        return isUpload;
    }

    public void setUpload(boolean upload) {
        isUpload = upload;
    }

    public String toString()
    {
        StringBuilder stringBuilder = new StringBuilder("SumFile=[");
        stringBuilder.append("fileName=").append(fileName);
        stringBuilder.append(",fileSize=").append(fileSize);
        stringBuilder.append(",fileLine=").append(fileLine);
        stringBuilder.append(",isUpload=").append(isUpload);
        stringBuilder.append(",isEndFile=").append(isEndFile);
        stringBuilder.append("]");
        return stringBuilder.toString();
    }

    public String cdr()
    {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(fileName).append(fieldSplit);
        stringBuilder.append(fileLine).append(fieldSplit);
        stringBuilder.append(fileSize).append(lineSplit);
        return stringBuilder.toString();
    }
}
